@extends('home.lei.business.index')
@section('r_content')
	<link rel="stylesheet" href="/lei/home/shenqing.css">
	<div style="width:950px;height:100%;float:left;background:white;margin-left:10px;">
		<div style="width:900px;height:40px;background:#ccc;margin-top:10px;">
			<span style="font-size:30px;color:white;">更换手机</span>
		</div>
		<div style="width:1050px;padding-left:50px;">
			<form class="navbar-form navbar-left" role="search" action="/home/user/{{$data['id']}}" method="post">
				{{ csrf_field() }}
				<input type="hidden" name="_method" value="PUT">
				  <div class="form-group">
				    	<b class="icon">*</b></label><span>新手机号码：</span><input id="phone" type="text" name="phone" class="form-control" style="width:200px">
				    		<a class="btn" href="javascript:;" id="phonenum" onclick="phone()">
				    			<span><button>点击获取验证码</button></span>
				    		</a>
				  </div><br>
				  <script>
				  		function phone(){
				  			 $.get('/phonecode',{'phone':$('#phone').val()},function(msg){
				  			 	//alert(msg);
				  			 });
				  		}
				  </script>	
				  <div class="form-group">
				    	<b class="icon">*</b></label><span>输入验证码：</span><input type="text" name="code" class="form-control" style="width:100px">
				  </div><br>
				  <div style="margin-top:30px;">
				  		<input type="submit" value="修改" style="width:100px;height:40px;margin-left:100px;">	
				  </div>
			</form>
		</div>
	</div>
@endsection